home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
workbench
/
wb
/
czesc_2
/
ml
/
man
/
dos
/
echo
< prev
next >
Wrap
Text File
|
1993-01-23
|
2KB
|
50 lines
ECHO(1) DOS COMMANDS ECHO(1)
NAME
ECHO : To print a string on the screen.
SYNOPSIS
ECHO <string> [NOLINE] [FIRST <nn>] [LEN <nn>]
TEMPLATE
ECHO "STRING,NOLINE/S,FIRST/S,LEN/S"
PATH
C:
DESCRIPTION
ECHO is normally used inside script files to print a string on the
screen. It can also be used to create a one line file or to append a
line to a file, using the redirection options.
With the FIRST option, it is possible to skip a few characters of
the string to print. The LEN option is chosen, to fix the size of the
string to print. These 2 options are useful when printing strings stored
in variables, as for constant strings, one would truncate them by
hand.
OPTIONS
NOLINE : does not start a new line after printing the string. Anything
printed afterwards will be printed at the left of the string
printed by ECHO.
FIRST <nn> : specifies the position in the string of the first
character to print. The first character of the string is counted
as zero, so the argument can be seen as the number of characters
to skip in the string.
LEN <nn> : specifies the number of characters to echo. ECHO will print
the specified number of characters from the position set with the
FIRST option. If no FIRST option is selected, ECHO will print the
<nn> rightmost characters of the string.
EXAMPLES
> ECHO 12345
12345
> ECHO 123456789 FIRST 4 LEN 2
45
> ECHO >ListAll "list ALL" ; Creates a one line file.
> ECHO >>MyFile "One more line at the end!" ; appends 1 line to MyFile.